package megrez.bussiness.schedule.util;

import megrez.common.util.ErrorCode;

/**
 * 异常代码
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
public enum ScheduleErrorCode implements ErrorCode {
    /** 异常 */
   CLASS_NOT_FOUND_IN_SPRING("101","类实例在容器中不存在"),
   SCHEDULE_TASK_EXIST("102", "定时任务已存在"),
   SCHEDULE_TASK_START_FAIL("103", "定时任务启动失败");

    private final String code;
    private final String message;
    
    private ScheduleErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
    
}
